package edu.zhku.ttms.view.panel.content;

import edu.zhku.ttms.view.label.LoginInfoLabel;
import edu.zhku.ttms.view.panel.component.QueryPanel;
import edu.zhku.ttms.view.panel.component.DataPanel;

/**
 * @author Feng
 * @since 2021/4/25 19:40
 */
public abstract class AbstractManagementPanel extends ViewPanel {

    public DataPanel dataPanel = new DataPanel();

    public void initData() {
        loadData(null, 1);
    }

    public abstract void loadData(String queryStr, int page);

    public AbstractManagementPanel() {
        super(true);
        this.add(new LoginInfoLabel());
        initData();
        this.add(new QueryPanel(this));
    }

}
